package org.gd.hellospring.events;

import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-11-04 17:28
 */
@Component
public class MessageEvent extends ApplicationEvent {

    private String message;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the component that published the event (never {@code null})
     */
    public MessageEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
